package com.indexingsystem.boss.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class  OrderCancelRecordExample{
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public OrderCancelRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderCancelRecordIdIsNull() {
            addCriterion("order_cancel_record_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdIsNotNull() {
            addCriterion("order_cancel_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdEqualTo(String value) {
            addCriterion("order_cancel_record_id =", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdNotEqualTo(String value) {
            addCriterion("order_cancel_record_id <>", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdGreaterThan(String value) {
            addCriterion("order_cancel_record_id >", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_cancel_record_id >=", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdLessThan(String value) {
            addCriterion("order_cancel_record_id <", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdLessThanOrEqualTo(String value) {
            addCriterion("order_cancel_record_id <=", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdLike(String value) {
            addCriterion("order_cancel_record_id like", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdNotLike(String value) {
            addCriterion("order_cancel_record_id not like", value, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdIn(List<String> values) {
            addCriterion("order_cancel_record_id in", values, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdNotIn(List<String> values) {
            addCriterion("order_cancel_record_id not in", values, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdBetween(String value1, String value2) {
            addCriterion("order_cancel_record_id between", value1, value2, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderCancelRecordIdNotBetween(String value1, String value2) {
            addCriterion("order_cancel_record_id not between", value1, value2, "orderCancelRecordId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeIsNull() {
            addCriterion("cancel_datetime is null");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeIsNotNull() {
            addCriterion("cancel_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeEqualTo(Date value) {
            addCriterion("cancel_datetime =", value, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeNotEqualTo(Date value) {
            addCriterion("cancel_datetime <>", value, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeGreaterThan(Date value) {
            addCriterion("cancel_datetime >", value, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cancel_datetime >=", value, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeLessThan(Date value) {
            addCriterion("cancel_datetime <", value, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("cancel_datetime <=", value, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeIn(List<Date> values) {
            addCriterion("cancel_datetime in", values, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeNotIn(List<Date> values) {
            addCriterion("cancel_datetime not in", values, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeBetween(Date value1, Date value2) {
            addCriterion("cancel_datetime between", value1, value2, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andCancelDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("cancel_datetime not between", value1, value2, "cancelDatetime");
            return (Criteria) this;
        }

        public Criteria andUpStatusIsNull() {
            addCriterion("up_status is null");
            return (Criteria) this;
        }

        public Criteria andUpStatusIsNotNull() {
            addCriterion("up_status is not null");
            return (Criteria) this;
        }

        public Criteria andUpStatusEqualTo(Integer value) {
            addCriterion("up_status =", value, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusNotEqualTo(Integer value) {
            addCriterion("up_status <>", value, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusGreaterThan(Integer value) {
            addCriterion("up_status >", value, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("up_status >=", value, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusLessThan(Integer value) {
            addCriterion("up_status <", value, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusLessThanOrEqualTo(Integer value) {
            addCriterion("up_status <=", value, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusIn(List<Integer> values) {
            addCriterion("up_status in", values, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusNotIn(List<Integer> values) {
            addCriterion("up_status not in", values, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusBetween(Integer value1, Integer value2) {
            addCriterion("up_status between", value1, value2, "upStatus");
            return (Criteria) this;
        }

        public Criteria andUpStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("up_status not between", value1, value2, "upStatus");
            return (Criteria) this;
        }

        public Criteria andIsauditorIsNull() {
            addCriterion("isauditor is null");
            return (Criteria) this;
        }

        public Criteria andIsauditorIsNotNull() {
            addCriterion("isauditor is not null");
            return (Criteria) this;
        }

        public Criteria andIsauditorEqualTo(Integer value) {
            addCriterion("isauditor =", value, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorNotEqualTo(Integer value) {
            addCriterion("isauditor <>", value, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorGreaterThan(Integer value) {
            addCriterion("isauditor >", value, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorGreaterThanOrEqualTo(Integer value) {
            addCriterion("isauditor >=", value, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorLessThan(Integer value) {
            addCriterion("isauditor <", value, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorLessThanOrEqualTo(Integer value) {
            addCriterion("isauditor <=", value, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorIn(List<Integer> values) {
            addCriterion("isauditor in", values, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorNotIn(List<Integer> values) {
            addCriterion("isauditor not in", values, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorBetween(Integer value1, Integer value2) {
            addCriterion("isauditor between", value1, value2, "isauditor");
            return (Criteria) this;
        }

        public Criteria andIsauditorNotBetween(Integer value1, Integer value2) {
            addCriterion("isauditor not between", value1, value2, "isauditor");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("memo is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("memo is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("memo =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("memo <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("memo >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("memo >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("memo <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("memo <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("memo like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("memo not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("memo in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("memo not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("memo between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("memo not between", value1, value2, "memo");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}